import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  typeParam: JSON.parse(localStorage.getItem('typeParam')) || {},
};

const mutations = {
  saveType(state,params){
    localStorage.setItem('typeParam', JSON.stringify(params));
    state.typeParam = params
  }
};

export default new Vuex.Store({
  state,
  mutations
})
